package com.monitor.entity;

import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.enums.IdType;

import java.io.Serializable;

/**
 * <p>
 * 加油记录表
 * </p>
 *
 * @author LX
 * @since 2018-09-13
 */
@TableName("erp_refueling")
public class ErpRefueling extends Model<ErpRefueling> {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;
    @TableField("customer_id")
    private Integer customerId;
    /**
     * 加油时间
     */
    @TableField("ref_dt")
    private String refDt;
    /**
     * 车牌号
     */
    @TableField("ref_car_number")
    private String refCarNumber;
    /**
     * 司机
     */
    @TableField("ref_driver")
    private String refDriver;
    /**
     * 汽油
     */
    @TableField("ref_gasoline")
    private Double refGasoline;
    /**
     * 柴油
     */
    @TableField("ref_diesel")
    private Double refDiesel;
    /**
     * 单价
     */
    @TableField("ref_price")
    private Double refPrice;
    /**
     * 金额
     */
    @TableField("ref_total")
    private Double refTotal;

    public String getRefDt() {
        return refDt;
    }

    public void setRefDt(String refDt) {
        this.refDt = refDt;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getCustomerId() {
        return customerId;
    }

    public void setCustomerId(Integer customerId) {
        this.customerId = customerId;
    }



    public String getRefCarNumber() {
        return refCarNumber;
    }

    public void setRefCarNumber(String refCarNumber) {
        this.refCarNumber = refCarNumber;
    }

    public String getRefDriver() {
        return refDriver;
    }

    public void setRefDriver(String refDriver) {
        this.refDriver = refDriver;
    }

    public Double getRefGasoline() {
        return refGasoline;
    }

    public void setRefGasoline(Double refGasoline) {
        this.refGasoline = refGasoline;
    }

    public Double getRefDiesel() {
        return refDiesel;
    }

    public void setRefDiesel(Double refDiesel) {
        this.refDiesel = refDiesel;
    }

    public Double getRefPrice() {
        return refPrice;
    }

    public void setRefPrice(Double refPrice) {
        this.refPrice = refPrice;
    }

    public Double getRefTotal() {
        return refTotal;
    }

    public void setRefTotal(Double refTotal) {
        this.refTotal = refTotal;
    }

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

    @Override
    public String toString() {
        return "ErpRefueling{" +
        ", id=" + id +
        ", customerId=" + customerId +
        ", refDt=" + refDt +
        ", refCarNumber=" + refCarNumber +
        ", refDriver=" + refDriver +
        ", refGasoline=" + refGasoline +
        ", refDiesel=" + refDiesel +
        ", refPrice=" + refPrice +
        ", refTotal=" + refTotal +
        "}";
    }
}
